﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class EShop_control_PersonInfo : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    public string ProfilePath()
    {
        string username = String.Empty;
        HttpCookie _user = Request.Cookies["userinfo"];
        if (Request.Cookies["userinfo"] != null)
        {
            if (_user["username"] != null)
            {
                username = _user["username"];
            }
            else
                Response.Redirect(ResolveUrl("~/Index.html"));
        }
        else
            Response.Redirect(ResolveUrl("~/Index.html"));

        return ResolveUrl("~/" + username + ".html");
    }
}